package top.api.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class LoginDto {
    @NotBlank(message = "用户名不可为空")
    private String userName;
    @NotBlank(message = "密码不可为空")
    private String password;
    @NotBlank(message = "验证码不可为空")
    private String picCode;
    @Pattern(regexp = "^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$",message = "uuid格式错误")
    private String uuid;
}
